package com.comprehensive.personalnovel.service;

import com.comprehensive.common.dto.PageResponse;
import com.comprehensive.common.po.Novel;
import com.comprehensive.common.po.NovelChapter;

public interface NovelService {
    PageResponse<Novel> listPage(int pageNum, int pageSize);
    Novel queryById(String id);
    void save(Novel novel);
    void update(Novel novel);
    void delete(String id);
    PageResponse<NovelChapter> listChapterPage(int pageNum, int pageSize, String novelId);
    NovelChapter queryChapterById(String id);
    void saveChapter( NovelChapter novelChapter);
    void updateChapter(NovelChapter novelChapter);
    void deleteChapter(String id);
    /**
     * 读取小说文件并提取章节
     * @param filePath 小说文件路径
     * @param novelId 小说id
     */
    void readNovelChapter(String filePath,String novelId);
}
